package cn.sda.leo.springStudy.model;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * \* User: song lei
 * \* Date: 2021/6/18
 * \* Time: 14:44
 * \* Description:
 * \
 */
@Component
@ConfigurationProperties(prefix = "user")
public class User {
    private String userName;
    private Integer age;
    private List<String> hobbies;


    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public List<String> getHobbies() {
        return hobbies;
    }

    public void setHobbies(List<String> hobbies) {
        this.hobbies = hobbies;
    }

    @Override
    public String toString() {
        return "User{" +
                "userName='" + userName + '\'' +
                ", age=" + age +
                ", hobbies=" + hobbies +
                '}';
    }
}
